#include <bits/stdc++.h>
using namespace std;
#define PI 3.14

int main()
{
	double a;
	char c1,c2,c3;
  int i;
	float f;
	scanf("%c%c%c",  &c1, &c2, &c3);
  printf("%c%c%c", c3, c2, c1);

  return 0;
}
